www.gusucode.com > 网页游戏五子棋onWeb 2008asp网站源码程序 > 网页游戏五子棋onWeb 2008asp网站源码程序/five/checkName.php

    <?php
include "./dbconnect.php";
$query = phpsql_query("select * from `room` where `player1_name` = '".$_GET[player_name]."' or `player2_name` = '".$_GET[player_name]."'");
$num = phpsql_num_rows($query);

if($num)
echo "nope";
else
echo "yep";
?>